package com.zhou.domain.Dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("飞机信息分页查询前端传参")
public class PageDto {
    @ApiModelProperty("第几页")
    private int pageNum;
    @ApiModelProperty("每页几条")
    private int pageSize;
    @ApiModelProperty("要排序的字段名称")
    private String sortField;
    @ApiModelProperty("ture升序false降序")
    private boolean isAsc;

    public PageDto(int pageNum, int pageSize, String sortField, boolean isAsc) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.sortField = sortField;
        this.isAsc = isAsc;
    }
}
